package xmlparser;

import org.antlr.v4.runtime.ParserRuleContext;
import org.antlr.v4.runtime.tree.ErrorNode;
import org.antlr.v4.runtime.tree.TerminalNode;

public class XMLExtractInformationListener extends XMLParserBaseListener {
	@Override
	public void enterContent(XMLParser.ContentContext ctx) {
		String s = ctx.getRuleContext().getText();
		System.out.println("enterContent");
		System.out.println(s);
	}

	

	@Override
	public void enterElement(XMLParser.ElementContext ctx) {
		String s = ctx.getRuleContext().getText();
		System.out.println("enterElement");
		System.out.println(s);
	}

	

	@Override
	public void enterProlog(XMLParser.PrologContext ctx) {
		String s = ctx.getRuleContext().getText();
		System.out.println("enterProlog");
		System.out.println(s);
	}

	

	@Override
	public void enterDocument(XMLParser.DocumentContext ctx) {
		String s = ctx.getRuleContext().getText();
		System.out.println("enterDocument");
		System.out.println(s);
	}

	

	@Override
	public void enterAttribute(XMLParser.AttributeContext ctx) {
		String s = ctx.getRuleContext().getText();
		System.out.println("enterAttribute");
		System.out.println(s);
	}

	

	@Override
	public void enterChardata(XMLParser.ChardataContext ctx) {
		String s = ctx.getRuleContext().getText();
		System.out.println("enterChardata");
		System.out.println(s);
	}

	

	@Override
	public void enterReference(XMLParser.ReferenceContext ctx) {
		String s = ctx.getRuleContext().getText();
		System.out.println("enterReference");
		System.out.println(s);
	}

	

	@Override
	public void enterMisc(XMLParser.MiscContext ctx) {
		String s = ctx.getRuleContext().getText();
		System.out.println("enterMisc");
		System.out.println(s);
	}

	

//	@Override
//	public void enterEveryRule(ParserRuleContext ctx) {
//		String s = ctx.getRuleContext().getText();
//		System.out.println("enterEveryRule");
//		System.out.println(s);
//	}
//
//	@Override
//	public void exitEveryRule(ParserRuleContext ctx) {
//		System.out.println("exitEveryRule");
//	}

	@Override
	public void visitTerminal(TerminalNode node) {
	}

	@Override
	public void visitErrorNode(ErrorNode node) {
	}
}
